package cn.lili.controller.feign.system;

import cn.lili.modules.system.client.SensitiveWordsClient;
import cn.lili.modules.system.service.SensitiveWordsService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author paulG
 * @since 2022/1/12
 **/
@RestController
@RequiredArgsConstructor
public class SensitiveWordsFeignController implements SensitiveWordsClient {

    private final SensitiveWordsService sensitiveWordsService;

    /**
     * 重新写入缓存
     */
    @Override
    public void resetCache() {
        sensitiveWordsService.resetCache();
    }
}
